Allow using list-colors-display to set colors in the Color widget.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 12 Mar 2010 23:08:30 +0000 (18:08 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 12 Mar 2010 23:08:30 +0000 (18:08 -0500)
commit37ded61a777bda4a4b116304e1ae8089b9eb2b58
treeef2852443b90c98751c116f05897de805fa41701
parente30bb2f1055439c04573444eba9f31e2cff92574
Allow using list-colors-display to set colors in the Color widget.

* facemenu.el (list-colors-display, list-colors-print): New arg
callback.  Use it to allow selecting colors.

* wid-edit.el (widget-image-insert): Insert image prop even if the
current display is non-graphic.
(widget-field-value-set): New fun.
(editable-field): Use it.
(widget-field-value-get): Clean up unused var.
(widget-color-value-create, widget-color--choose-action): New
funs.  Allow using list-colors-display to choose color.
lisp/ChangeLog
lisp/facemenu.el
lisp/wid-edit.el